<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>optparse.Option</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css"></link>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">

<!-- =========== START OF NAVBAR =========== -->
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="center">
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="weblogolib-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar" align="right" width="100%">
      <table border="0" cellpadding="0" cellspacing="0">
      <tr><th class="navbar" align="center">
        <p class="nomargin">
          <a class="navbar" target="_top" href="http://code.google.com/p/weblogo/">WebLogo</a>
      </p></th></tr></table>
    </th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <font size="-1"><b class="breadcrumbs">
        Module&nbsp;optparse ::
        Class&nbsp;Option
      </b></font></br>
    </td>
    <td><table cellpadding="0" cellspacing="0">
      <tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a>&nbsp;|&nbsp;<a href="optparse.Option-class.html" target="_top">no&nbsp;frames</a>]</font></td></tr>
    </table></td>
</tr></table>

<!-- =========== START OF CLASS DESCRIPTION =========== -->
<h2 class="class">Class Option</h2>

<hr/>

<pre class="literalblock">
Instance attributes:
  _short_opts : [string]
  _long_opts : [string]

  action : string
  type : string
  dest : string
  default : any
  nargs : int
  const : any
  choices : [string]
  callback : function
  callback_args : (any*)
  callback_kwargs : { string : any }
  help : string
  metavar : string
</pre>
<hr/>


<!-- =========== START OF METHOD SUMMARY =========== -->
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="summary">
  <th colspan="2">Method Summary</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="__init__"></a><span class="summary-sig"><span class="summary-sig-name">__init__</span>(<span class=summary-sig-arg>self</span>,
          <span class="summary-sig-vararg">*opts</span>,
          <span class="summary-sig-kwarg">**attrs</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="__str__"></a><span class="summary-sig"><span class="summary-sig-name">__str__</span>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="check_value"></a><span class="summary-sig"><span class="summary-sig-name">check_value</span>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>opt</span>,
          <span class=summary-sig-arg>value</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="convert_value"></a><span class="summary-sig"><span class="summary-sig-name">convert_value</span>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>opt</span>,
          <span class=summary-sig-arg>value</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="get_opt_string"></a><span class="summary-sig"><span class="summary-sig-name">get_opt_string</span>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="process"></a><span class="summary-sig"><span class="summary-sig-name">process</span>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>opt</span>,
          <span class=summary-sig-arg>value</span>,
          <span class=summary-sig-arg>values</span>,
          <span class=summary-sig-arg>parser</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="take_action"></a><span class="summary-sig"><span class="summary-sig-name">take_action</span>(<span class=summary-sig-arg>self</span>,
          <span class=summary-sig-arg>action</span>,
          <span class=summary-sig-arg>dest</span>,
          <span class=summary-sig-arg>opt</span>,
          <span class=summary-sig-arg>value</span>,
          <span class=summary-sig-arg>values</span>,
          <span class=summary-sig-arg>parser</span>)</span></code>
</td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
  <td><code><a name="takes_value"></a><span class="summary-sig"><span class="summary-sig-name">takes_value</span>(<span class=summary-sig-arg>self</span>)</span></code>
</td></tr>
</table><br />


<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="summary">
  <th colspan="2">Class Variable Summary</th></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="optparse.Option-class.html#ACTIONS"><code>ACTIONS</code></a></b> = <span title="('store', 'store_const', 'store_true', 'store_false', 'append', 'count', 'callback', 'help', 'version')"><code>('store',&nbsp;'store_const',&nbsp;'store_true',&nbsp;'store_<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="optparse.Option-class.html#ALWAYS_TYPED_ACTIONS"><code>ALWAYS_TYPED_ACTIONS</code></a></b> = <span title="('store', 'append')"><code>('store',&nbsp;'append')               </code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>list</code></font></td>
<td><b><a href="optparse.Option-class.html#ATTRS"><code>ATTRS</code></a></b> = <span title="['action', 'type', 'dest', 'default', 'nargs', 'const', 'choices', 'callback', 'callback_args', 'callback_kwargs', 'help', 'metavar']"><code>['action',&nbsp;'type',&nbsp;'dest',&nbsp;'default',&nbsp;'nargs',&nbsp;'<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>list</code></font></td>
<td><b><a href="optparse.Option-class.html#CHECK_METHODS"><code>CHECK_METHODS</code></a></b> = <span title="[&lt;function _check_action at 0x1344f70&gt;, &lt;function _check_type at 0x1344fb0&gt;, &lt;function _new_check_choice at 0x1406970&gt;, &lt;function _check_dest at 0x1345070&gt;, &lt;function _check_const at 0x13450b0&gt;, &lt;function _check_nargs at 0x13450f0&gt;, &lt;function _check_callback at 0x1345130&gt;]"><code>[&lt;function&nbsp;_check_action&nbsp;at&nbsp;0x1344f70&gt;,&nbsp;<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="optparse.Option-class.html#STORE_ACTIONS"><code>STORE_ACTIONS</code></a></b> = <span title="('store', 'store_const', 'store_true', 'store_false', 'append', 'count')"><code>('store',&nbsp;'store_const',&nbsp;'store_true',&nbsp;'<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>dict</code></font></td>
<td><b><a href="optparse.Option-class.html#TYPE_CHECKER"><code>TYPE_CHECKER</code></a></b> = <span title="{'int': &lt;function check_builtin at 0x1337d30&gt;, 'float': &lt;function check_builtin at 0x1337d30&gt;, 'complex': &lt;function check_builtin at 0x1337d30&gt;, 'long': &lt;function check_builtin at 0x1337d30&gt;, 'choice': &lt;function check_choice at 0x1344df0&gt;}"><code>{'int':&nbsp;&lt;function&nbsp;check_builtin&nbsp;at&nbsp;0x1337<span class="variable-ellipsis">...</span></code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="optparse.Option-class.html#TYPED_ACTIONS"><code>TYPED_ACTIONS</code></a></b> = <span title="('store', 'append', 'callback')"><code>('store',&nbsp;'append',&nbsp;'callback')          </code>
</span></td></tr>
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
<td><b><a href="optparse.Option-class.html#TYPES"><code>TYPES</code></a></b> = <span title="('string', 'int', 'long', 'float', 'complex', 'choice')"><code>('string',&nbsp;'int',&nbsp;'long',&nbsp;'float',&nbsp;'complex',&nbsp;'c<span class="variable-ellipsis">...</span></code>
</span></td></tr>
</table><br />


<!-- =========== START OF CLASS VARIABLE DETAILS =========== -->
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="details">
  <th colspan="2">Class Variable Details</th></tr>
</table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="ACTIONS"></a>
<h3>ACTIONS</h3>
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Type:</b></dt>
      <dd>
          <code>tuple</code>

      </dd>
<span title="('store', 'store_const', 'store_true', 'store_false', 'append', 'count', 'callback', 'help', 'version')">      <dt><b>Value:</b></dt>
      <dd><table><tr><td>
<pre class="variable">
('store',
 'store_const',
 'store_true',
 'store_false',
 'append',
 'count',
 'callback',
 'help',
<span class="variable-ellipsis">...</span>                                                                    </pre>
        </td></tr></table></dd>
</span>    </dl>
  </dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="ALWAYS_TYPED_ACTIONS"></a>
<h3>ALWAYS_TYPED_ACTIONS</h3>
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Type:</b></dt>
      <dd>
          <code>tuple</code>

      </dd>
<span title="('store', 'append')">      <dt><b>Value:</b></dt>
      <dd><table><tr><td>
<pre class="variable">
('store', 'append')                                                    </pre>
        </td></tr></table></dd>
</span>    </dl>
  </dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="ATTRS"></a>
<h3>ATTRS</h3>
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Type:</b></dt>
      <dd>
          <code>list</code>

      </dd>
<span title="['action', 'type', 'dest', 'default', 'nargs', 'const', 'choices', 'callback', 'callback_args', 'callback_kwargs', 'help', 'metavar']">      <dt><b>Value:</b></dt>
      <dd><table><tr><td>
<pre class="variable">
['action',
 'type',
 'dest',
 'default',
 'nargs',
 'const',
 'choices',
 'callback',
<span class="variable-ellipsis">...</span>                                                                    </pre>
        </td></tr></table></dd>
</span>    </dl>
  </dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="CHECK_METHODS"></a>
<h3>CHECK_METHODS</h3>
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Type:</b></dt>
      <dd>
          <code>list</code>

      </dd>
<span title="[&lt;function _check_action at 0x1344f70&gt;, &lt;function _check_type at 0x1344fb0&gt;, &lt;function _new_check_choice at 0x1406970&gt;, &lt;function _check_dest at 0x1345070&gt;, &lt;function _check_const at 0x13450b0&gt;, &lt;function _check_nargs at 0x13450f0&gt;, &lt;function _check_callback at 0x1345130&gt;]">      <dt><b>Value:</b></dt>
      <dd><table><tr><td>
<pre class="variable">
[&lt;function _check_action at 0x1344f70&gt;,
 &lt;function _check_type at 0x1344fb0&gt;,
 &lt;function _new_check_choice at 0x1406970&gt;,
 &lt;function _check_dest at 0x1345070&gt;,
 &lt;function _check_const at 0x13450b0&gt;,
 &lt;function _check_nargs at 0x13450f0&gt;,
 &lt;function _check_callback at 0x1345130&gt;]                              </pre>
        </td></tr></table></dd>
</span>    </dl>
  </dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="STORE_ACTIONS"></a>
<h3>STORE_ACTIONS</h3>
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Type:</b></dt>
      <dd>
          <code>tuple</code>

      </dd>
<span title="('store', 'store_const', 'store_true', 'store_false', 'append', 'count')">      <dt><b>Value:</b></dt>
      <dd><table><tr><td>
<pre class="variable">
('store', 'store_const', 'store_true', 'store_false', 'append', 'count<span class="variable-linewrap">\</span>
')                                                                     </pre>
        </td></tr></table></dd>
</span>    </dl>
  </dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="TYPE_CHECKER"></a>
<h3>TYPE_CHECKER</h3>
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Type:</b></dt>
      <dd>
          <code>dict</code>

      </dd>
<span title="{'int': &lt;function check_builtin at 0x1337d30&gt;, 'float': &lt;function check_builtin at 0x1337d30&gt;, 'complex': &lt;function check_builtin at 0x1337d30&gt;, 'long': &lt;function check_builtin at 0x1337d30&gt;, 'choice': &lt;function check_choice at 0x1344df0&gt;}">      <dt><b>Value:</b></dt>
      <dd><table><tr><td>
<pre class="variable">
{'choice': &lt;function check_choice at 0x1344df0&gt;,
 'complex': &lt;function check_builtin at 0x1337d30&gt;,
 'float': &lt;function check_builtin at 0x1337d30&gt;,
 'int': &lt;function check_builtin at 0x1337d30&gt;,
 'long': &lt;function check_builtin at 0x1337d30&gt;}                        </pre>
        </td></tr></table></dd>
</span>    </dl>
  </dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="TYPED_ACTIONS"></a>
<h3>TYPED_ACTIONS</h3>
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Type:</b></dt>
      <dd>
          <code>tuple</code>

      </dd>
<span title="('store', 'append', 'callback')">      <dt><b>Value:</b></dt>
      <dd><table><tr><td>
<pre class="variable">
('store', 'append', 'callback')                                        </pre>
        </td></tr></table></dd>
</span>    </dl>
  </dd>
</dl></td></tr></table>
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
<a name="TYPES"></a>
<h3>TYPES</h3>
<dl>
  <dt></dt>
  <dd>
    <dl>
      <dt><b>Type:</b></dt>
      <dd>
          <code>tuple</code>

      </dd>
<span title="('string', 'int', 'long', 'float', 'complex', 'choice')">      <dt><b>Value:</b></dt>
      <dd><table><tr><td>
<pre class="variable">
('string', 'int', 'long', 'float', 'complex', 'choice')                </pre>
        </td></tr></table></dd>
</span>    </dl>
  </dd>
</dl></td></tr></table>
<br />


<!-- =========== START OF NAVBAR =========== -->
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="center">
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="weblogolib-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
    <th class="navbar" align="right" width="100%">
      <table border="0" cellpadding="0" cellspacing="0">
      <tr><th class="navbar" align="center">
        <p class="nomargin">
          <a class="navbar" target="_top" href="http://code.google.com/p/weblogo/">WebLogo</a>
      </p></th></tr></table>
    </th>
  </tr>
</table>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td align="left"><font size="-2">Generated by Epydoc 2.1 on </font></td>
    <td align="right"><a href="http://epydoc.sourceforge.net"
                      ><font size="-2">http://epydoc.sf.net</font></a></td>
  </tr>
</table>
</body>
</html>
